package com.mowh.gof23.creational.patterns.builder;

/**
 * @author mowh1gd
 * @create 2023/10/24 8:16
 */
public class Main {
    public static void main(String[] args) {
        TextBuilder textBuilder = new TextBuilder();
        Director director = new Director(textBuilder);
        director.construct();
        String result = textBuilder.getResult();
        System.out.println("TextBuilder Result: " + result);

        HTMLBuilder htmlBuilder = new HTMLBuilder();
        Director director1 = new Director(htmlBuilder);
        director1.construct();
        String fileName = htmlBuilder.getResult();
        System.out.println("HTMLBuilder " + fileName + "文件编写完成。");
    }
}
